var express = require('express');
var router = module.exports = express.Router();

var _userDao = require('../dao/userDao');
var cookieSession = require('../util/base').cookieSession();

router.use(cookieSession);
// 登录
router.post('/',function (req,resp,next) {
	console.error(req.body);
	_userDao.loginByName(req, resp, next);
});